package com.hsq.file_;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class TestReadFile {
    public static void main(String[] args) {
        String fileName = "D:\\git_turtle\\news2.txt";
        String line;
        try {
            BufferedReader in = new BufferedReader(new FileReader(fileName));
            while ((line = in.readLine()) != null){
                System.out.println(line);
            }
            in.close();
        } catch (IOException e) {
            System.out.println("Problm writing " + fileName);
            throw new RuntimeException(e);
        }
    }
}
